package com.cskaoyan.mapper;

import com.cskaoyan.bean.Category;
import com.cskaoyan.bean.CategoryExample;
import com.cskaoyan.bo.vx.wangdi.CurrentBo;
import com.cskaoyan.bo.vx.wangdi.GoodsCategoryBo;
import com.cskaoyan.vo.CategoryVo;
import com.cskaoyan.vo.ChilderVo;
import com.cskaoyan.vo.vx.wangdi.IndexVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    List<Category> selectByExample(CategoryExample example);

    Category selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") Category record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<CategoryVo> querycatAndBrand();

    List<ChilderVo> queryByIdForm(Integer id);


    List<IndexVo.CategoryListBean> selectl1();

    List<IndexVo.CurrentSubCategoryBean> selectl2( Integer sortOrder);

    IndexVo.CurrentCategoryBean selectIndex();

    CurrentBo.CurrentCategoryBean current(Integer id);

    List<CurrentBo.CurrentSubCategoryBean> currentAndId(Integer sortOrder);

    GoodsCategoryBo.CurrentCategoryBean selectCurrentCategoryBean(Integer id);

    GoodsCategoryBo.ParentCategoryBean selectParent(Integer sortOrder);

    List<GoodsCategoryBo.BrotherCategoryBean> selectBrother(Integer sortOrder);

    GoodsCategoryBo.CurrentCategoryBean select01(Integer id);

    GoodsCategoryBo.ParentCategoryBean select02(Integer id);

    List<GoodsCategoryBo.BrotherCategoryBean> select03(int pid);
}